import Mock from 'mockjs';

let resource = [{
		key: "/interview/info",
		method: "get",
		data: Mock.mock({
			'STATUS': "SUCCESS",
			'data': {
				"STATUS": "SUCCESS",
				"DATA": {
					"interview": {
						"id": "19",
						"autor": "3",
						"dateTime": "2021-06-01 00:01:00",
						"flg": "1"
					},
					"resource": {
						"id": "14",
						"source": "线索来源",
						"ypzw": "应聘职位",
						"csgz": "从事过的工作",
						"tdgsmc": "投递公司名称",
						"autor": "3",
						"bz": "备注"
					},
					"student": {
						"id": "17",
						"name": "学生姓名",
						"secId": "身份证ID",
						"secFrontUrl": "身份证正面",
						"secBackUrl": "身份证反面",
						"secHandleUrl": "身份证手持",
						"tel": "联系电话",
						"account": "银行账户",
						"accountTel": "银行预留电话",
						"address": "联系地址",
						"email": "邮件",
						"degree": "学历",
						"major": "专业",
						"graduate": "毕业院校",
						"birth": "2021-06-01 00:01:00",
						"graduateTime": "2021-06-01 00:01:00"
					},
					"resourceRecord": {
						"id": "12",
						"comment": "资料备注",
						"autor": "7",
						"content": "上传的文件或图片路径"
					},
					"reservationBackview": {
						"id": "5",
						"autor": "7",
						"datetime": "2021-06-01 00:01:00"
					},
					"reservationTry": {
						"id": "5",
						"autor": "7",
						"datetime": "2021-06-01 00:01:00"
					}
				}
			}
		})
	},

	{
		key: "/interview/list",
		method: "get",
		data: () => {
			return Mock.mock({
				"STATUS": "SUCCESS",
				"data": {
					"STATUS": "SUCCESS",
					"DATA": {
						"pageInfo": {
							"total": 1,
							"size": 7,
							"totalPage": 1,
							"page": 1
						},
						"list|10": [{
							"interview": {
								"id": 17,
								"des": "到访描述",
								"flg": true,
								"dateTime": "2021-07-07 13:48:47",
								"autor": 1,
								"ypzw": "Java",
							},
							"resource": {
								"id": 12,
								"source": "58同城",
								"statu": "待回访",
							},
							"student": {
								"id": 15,
								"name": "姓名1",
								"tel": "联系电话",
							},
							"reservationBackview": {
								"id": 3,
								"datetime": "2000-06-30 00:00:00",
							},
							"reservationTry": {
								"id": 3,
								"datetime": "2000-06-30 00:00:00",

							}
						}]
					}
				}


			});
		}
	}, {
		key: "/interview",
		method: "delete",
		data: function () {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {
					"STATUS": "SUCCESS",
				},
			});
		}
	}, {
		key: "/interview",
		method: "put",
		data: function () {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {
					"STATUS": "SUCCESS",
				},
			});
		}
	}, {
		key: "/interview",
		method: "post",
		data: function () {
			return Mock.mock({
				'STATUS': "SUCCESS",
				'data': {
					"STATUS": "SUCCESS",
				},
			});
		}
	},
];

export default resource;